package com.yami.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yami.shop.bean.model.ShopWithdrawCash;
import com.yami.shop.common.util.PageParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商家提现申请信息
 *
 * @author Dwl
 * @date 2019-09-19 14:22:08
 */
public interface ShopWithdrawCashMapper extends BaseMapper<ShopWithdrawCash> {

    /**
     * 条件查询，分页获取店铺提现记录
     * @param page 分页参数
     * @param shopWithdrawCash 提现参数
     * @return 分页店铺提现记录
     */
    IPage<ShopWithdrawCash> pageShopWithdrawCash(PageParam<ShopWithdrawCash> page, @Param("shopWithdrawCash") ShopWithdrawCash shopWithdrawCash);

    /**
     * 获取店铺提现详情
     * @param shopId 店铺id
     * @return 店铺提现记录
     */
    ShopWithdrawCash getShopWithdrawCashByShopId(@Param("shopId")Long shopId);

    /**
     * 获取筛选条件筛选的提现信息
     * @param shopWithdrawCash
     * @return
     */
    List<ShopWithdrawCash> listExportByParam(@Param("shopWithdrawCash")ShopWithdrawCash shopWithdrawCash);
}
